package com.ssk.sh.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.time.OffsetDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author ssk
 * @since 2025-07-03
 */
@Getter
@Setter
@TableName("users")
@Schema(name = "Users", description = "")
public class Users implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("ws_id")
    private Long wsId;

    @TableField("fullname")
    private String fullname;

    @TableField("email")
    private String email;

    @TableField("password_hash")
    private String passwordHash;

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private OffsetDateTime createdAt;

    public static final String ID = "id";

    public static final String WS_ID = "ws_id";

    public static final String FULLNAME = "fullname";

    public static final String EMAIL = "email";

    public static final String PASSWORD_HASH = "password_hash";

    public static final String CREATED_AT = "created_at";
}
